<template>
  <view class="downLoad">
    <view class="dow-header">
      <img src="/static/other/downLoad/left_arrow.png" alt="返回" mode="aspectFill" class="dow-header-img" @click="goback" />
      <text class="dow-header-text">二维码下载</text>
      <view class="null"></view>
    </view>
    <view class="dow-content">
      <text class="dow-content-text1">版本号：{{versionInfo.versionNum}}</text>
      <img src="/static/other/downLoad/erweima.png" alt="二维码" mode="aspectFill"  class="dow-content-img"/>
      <text class="dow-content-text2">微信用户扫码请点击右上角的三个点(...)在浏览器中打开</text>
    </view>
    <view class="dow-bottom"></view>
  </view>
</template>

<script>
  import {apiSystemVersionlogQueryAppLastVersionInfo} from "@/api/system/versionlog"
  export default{
    data(){
      return{
        versionInfo:{}
      }
    },
    onLoad(){
      this.init()
    },
    methods:{
      init(){
        apiSystemVersionlogQueryAppLastVersionInfo().then(res=>{
          this.versionInfo=res.data
        })
      },
      goback(){
        uni.navigateBack({
          delta:1
        });
      }
    }
  }
</script>

<style lang="scss" scoped>
  .downLoad{
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background: rgb(246,246,246);
    .dow-header{
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color:rgb(31,81,154);
      padding: 30px 20px 13px 20px;
      .dow-header-img{
        width: 10px;
        height: 15px;
      }
      .dow-header-text{
        font-size: 17px;
        font-weight: 600;
        color: white;
      }
      .null{
        width: 10px;
        height: 15px;
      }
    }
    .dow-content{
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin:5PX 10PX;
      border-radius: 10px;
      background-color: white;
      padding: 35px 0 0 0 ;
      .dow-content-img{
        margin: 0 0 30px;
        width: 150px;
      }
      .dow-content-text1{
        margin: 20px 0 30px 0;
        text-align: center;
        font-size: 15px;
        font-weight: 500;
      }
      .dow-content-text2{
        padding: 0 35px;
        font-size: 13px;
        text-align: center;
        color: red;
      }
    }
    .dow-bottom{
      width: 100%;
      height: 20px;
      background-color: white;
    }
  }
</style>
